Fence Policy
Fence Policy
End Points
Get Groups For Fence Policy
Associate Fence Policy To Multiple Group
Dis-Associate Fence Policy From Multiple Group
Attribute
group_id
long
Unique identifier of the group
group_name
string
Name of the group
group_type
integer
Type of the group
member_count
integer
Count of members in the group
[
{
"group_id": 302,
"group_name": "ComplianceGroup",
"group_type": 6,
"member_count": 1
}
]
Get Groups For Fence Policy
Get the list of groups to which the Fence policy is associated and the current Fence status of the group
oauthscope : MDMOnDemand.MDMInventory.READ
GET - /api/v1/mdm/compliance/{compliance_id}/groups
curl --request GET \
--url https://www.mdm.manageengine.com/api/v1/mdm/compliance/382798473/groups \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
HTTP/1.1 {
"group_list": [
{
"group_id": 302,
"group_name": "ComplianceGroup",
"group_type": 6,
"member_count": 1
}
],
"compliance_id": 382798473
}
Associate Fence Policy To Multiple Group
Fence to device groups distribution
oauthscope : MDMOnDemand.MDMInventory.CREATE
POST - /api/v1/mdm/compliance/{compliance_id}/groups
Arguments
id
string
Profile ID of compliance profile
group_ids
array
(Required)
Collection of group IDs from which compliance needs to be removed
curl --request POST \
--url https://www.mdm.manageengine.com/api/v1/mdm/compliance/382798473/groups \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"id": 9839823982939,
"group_ids": [
"1",
"2",
"3"
]
}
HTTP/1.1 {
"group_list": [
{
"group_id": 302,
"group_name": "ComplianceGroup",
"group_type": 6,
"member_count": 1
}
],
"compliance_id": 382798473
}
Dis-Associate Fence Policy From Multiple Group
Disassociate Fence rule from a group of devices
oauthscope : MDMOnDemand.MDMInventory.DELETE
DELETE - /api/v1/mdm/compliance/{compliance_id}/groups
curl --request DELETE \
--url https://www.mdm.manageengine.com/api/v1/mdm/compliance/382798473/groups \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
HTTP/1.1 {
"group_list": [
{
"group_id": 302,
"group_name": "ComplianceGroup",
"group_type": 6,
"member_count": 1
}
],
"compliance_id": 382798473
}